home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
cool
/
cool.lha
/
ice
/
cpp
/
macro.h
< prev
next >
Wrap
C/C++ Source or Header
|
1991-09-04
|
858b
|
36 lines
/*
Copyright (C) 1990 Texas Instruments Incorporated.
Permission is granted to any individual or institution to use, copy, modify,
and distribute this software, provided that this complete copyright and
permission notice is maintained, intact, in all copies and supporting
documentation.
Texas Instruments Incorporated provides this software "as is" without
express or implied warranty.
*
* Edit history
* Created: LGO 30-Mar-89 -- Initial design and implementation.
*
* MACRO defmacro
*/
typedef enum {p_positional, p_key, p_rest, p_body} Type;
typedef enum {mod_none, mod_quote, mod_unquote, mod_concat} Modifier;
typedef struct arg {
struct arg* next;
char* name;
char* value;
Type type;
} Arg;
extern Arg arg_error; /* Global error flag */
extern Arg* macro_args(/* char* macname */); /* parse macro arguments */